home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / pt-mvr-base.h < prev    next >
C/C++ Source or Header  |  1996-05-12  |  2KB  |  65 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_tree_mvr_h)
  24. #define octave_tree_mvr_h 1
  25.  
  26. #if defined (__GNUG__)
  27. #pragma interface
  28. #endif
  29.  
  30. class octave_value;
  31. class octave_value_list;
  32.  
  33. #include "pt-exp-base.h"
  34.  
  35. // A base class for objects that can be return multiple values
  36.  
  37. class
  38. tree_multi_val_ret : public tree_expression
  39. {
  40. public:
  41.  
  42.   tree_multi_val_ret (int l = -1, int c = -1) : tree_expression (l, c) { }
  43.  
  44.   tree_multi_val_ret (int l = -1, int c = -1, tree_expression::type et)
  45.     : tree_expression (l, c, et) { }
  46.  
  47.   ~tree_multi_val_ret (void) { }
  48.  
  49.   bool is_multi_val_ret_expression (void) const
  50.     { return true; }
  51.  
  52.   octave_value eval (bool print);
  53.  
  54.   virtual octave_value_list eval (bool print, int nargout,
  55.                   const octave_value_list& args) = 0;
  56. };
  57.  
  58. #endif
  59.  
  60. /*
  61. ;;; Local Variables: ***
  62. ;;; mode: C++ ***
  63. ;;; End: ***
  64. */
  65.